package com.caijg.controller.user;

import com.caijg.domain.vo.Result;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController // ResponseBody + controller
@Slf4j // 记录日志
@Tag(name = "测试模块") // swagger3 控制器标签
@RequestMapping("/test")
public class TestController {

    /**
     * 测试接口，没啥用
     * @return hello world
     */
    @PostMapping("/hello")
    @Operation(summary = "测试接口")
    public Result hello(){
        return Result.success("hello springboot！");
    }
}